package 类与对象.多态.多态数组;

public class Student extends Person{
    //分数
    private double score;

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public String say() {
        return super.say() + "\tscore=" +score;
    }

    public void student(){
        System.out.println("学生" + getName() +"正在上课");
    }
}
